﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

using EventSys.BussinesEntities;
using Microsoft.Practices.Unity;
using EventSys.BussinesLogic;

namespace EventSys.MVC4Web.Controllers
{
    public class UserProfileController : Controller
    {
        //
        // GET: /UserProfile/

        [Dependency]
        public IUserProfileService userprofileservice { get; set; }

        [Authorize(Roles = "Organizador")]
        public ActionResult Index()
        {
            var lista = userprofileservice.GetFromAllUserProfiles();
            return View(lista);
        }
        [Authorize(Roles = "Organizador")]
        public ActionResult ListaUsuarios()
        {
            var lista = userprofileservice.GetFromAllUserProfilesDetalle();
            return View(lista);
        }
       
    }
}
